package com.example.txl.bean;

// PeoBean类，用于表示联系人相关的信息，是地址簿系统中的联系人实体类
public class PeoBean {
    /**
     id
     **/
    private String id;
    /**
     姓名
     **/
    private String name;
    /**
     联系方式
     **/
    private String num;
    /**
     性别
     **/
    private String sex;
    /**
     备注
     **/
    private String remark;
    /**
     首字母
     **/
    private String beginZ;

    //// 重写toString方法，用于方便地将PeoBean对象转换为字符串表示形式
    @Override
    public String toString() {
        return "PeoBean{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", num='" + num + '\'' +
                ", sex='" + sex + '\'' +
                ", remark='" + remark + '\'' +
                ", beginZ='" + beginZ + '\'' +
                '}';
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setBeginZ(String beginZ) {
        this.beginZ = beginZ;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getNum() {
        return num;
    }

    public String getSex() {
        return sex;
    }
    //备注信息
    public String getRemark() {
        return remark;
    }
    //首字母
    public String getBeginZ() {
        return beginZ;
    }

    // 默认构造函数，用于创建一个空的PeoBean对象
    public PeoBean() {
    }

    // // 全参数构造函数，用于创建一个包含所有属性信息的PeoBean对象
    public PeoBean(String id, String name, String num, String sex, String remark, String beginZ) {
        this.id = id;
        this.name = name;
        this.num = num;
        this.sex = sex;
        this.remark = remark;
        this.beginZ = beginZ;
    }

    // 部分参数构造函数，用于创建一个包含部分属性信息（不包含beginZ）的PeoBean对象
    public PeoBean(String id, String name, String num, String sex, String remark) {
        this.id = id;
        this.name = name;
        this.num = num;
        this.sex = sex;
        this.remark = remark;
    }
}
